package com.yunke.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 云科Knife4j配置类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Configuration
public class YunkeKnife4jConfig {

    /**
     * OpenAPI配置
     */
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("云科搭子系统API文档")
                        .version("1.0.0")
                        .description("云科搭子组局系统后端接口文档")
                        .contact(new Contact()
                                .name("云科技术团队")
                                .email("yunke@example.com")
                                .url("https://www.yunke.com"))
                        .license(new License()
                                .name("MIT License")
                                .url("https://opensource.org/licenses/MIT")));
    }
} 